/*
 * @Description: 
 * @Version: 1.0
 * @Autor: LFL
 * @Date: 2022-10-24 15:00:01
 * @LastEditors: LFL
 * @LastEditTime: 2022-10-24 21:27:39
 */
#ifndef __CSB_H
#define __CSB_H

#include "sys.h"
#include "delay.h"
#include "usart.h"
#include "suanfa.h"


typedef struct CSB_data{
    GPIO_TypeDef* CSB_POTR;
    uint16_t    CSB_TRIG;
    uint16_t    CSB_ECHO;
    TIM_TypeDef * CSB_Timer;
	char 		CSBID;
}Csb_t;




void CSBInit(Csb_t* Csb);

//��ȡ����������
float GetDistance(Csb_t* Csb);
//�������
u32 calculer(u32 count,Csb_t* csb);


#endif

